#pragma once

#include "ip_phone_msg_define.h"

class ip_data_manager;
class ip_session_op;

class dial_up_dlg : public CDialogBase
{
	DECLARE_DYNAMIC(dial_up_dlg)
public:
	dial_up_dlg(CWnd* pParent = NULL);   
	virtual ~dial_up_dlg();
	enum { IDD = IDD_IP_PHONE_DIALUP_DLG };
	void set_notify(HWND hwnd_, int index_)
	{
		notify_wnd_ = hwnd_;	
		pane_index_ = index_;
	}	
private:
	int  pane_index_;
	HWND notify_wnd_;
protected:
	virtual void DoDataExchange(CDataExchange* pDX);   
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual void PostNcDestroy();
	afx_msg void OnClose();
	virtual CWnd* GetResizableWnd(){ return this; };
	afx_msg void OnSize(UINT nType, int cx, int cy);

	afx_msg void OnBnClickedDialupCallBtn();
	afx_msg void OnBnClickedDialupDelBtn();
	afx_msg void OnBnClickedDialupNumBtn();
	afx_msg void OnEnChangeDialupEdit();
	afx_msg void OnTimer(UINT_PTR nIDEvent);

private:
	void ChangeLanguage();
	void DSkinLiteSkin();
	void add_anchor_ex();
public:

	CEdit       edit_ctrl_;		
	std::string call_num_;	

	ip_data_manager * data_mgr_;
	ip_session_op * session_op_;
public:
	bool is_have_prompt_;

	afx_msg void OnBnClickedHangUpCallBtn();
	afx_msg void OnEnUpdateDialupEdit();
	afx_msg void OnBnClickedDialupClearAllBtn();
};
